package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class UpdateRule {

    private int beginIndex;
    private int endIndex;
    private ReferentialAction referentialAction;

    public UpdateRule(int beginIndex, ReferentialAction referentialAction) {
        this.beginIndex = beginIndex;
        this.endIndex = referentialAction.getEndIndex();
        this.referentialAction = referentialAction;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public ReferentialAction getReferentialAction() {
        return referentialAction;
    }

}
